import useAsyncFn from "./useAsyncFn"

const useAsync = (fn)=>{
    const [ data,callback ] = useAsyncFn(fn);
    callback();
    return data;
}

export default useAsync;